import request from '../request'
// 登录
export const login = (data) => {
    return request({
        url: "cust/login",
        method: "post",
        data,
    });
};

// 注册
export const registry = (data) => {
    return request({
        url: "cust/registry",
        method: "post",
        data,
    });
};

// 登出
export const logout = () => {
    return request({
        url: "logout",
        method: "get"
    });
};

export const userInfo = (data) => {
    return request({
        url: "cust/info",
        method: "get",
        data,
    });
};


export const userProfiles = (data) => {
    return request({
        url: "cust/profiles",
        method: "get",
        data,
    });
};